import { defineStore } from 'pinia';

export const useBehaviorDesignerStore = defineStore(
  'behaviorDesigner',
  () => {
    // 选中的左侧菜单
    const sidebar = ref('');
    // 属性面板可见性
    const propsVisible = ref(false);

    return {
      sidebar,
      propsVisible,
    };
  },
  {
    persist: {
      key: 'behaviorDesignerStore',
      storage: window.localStorage,
      paths: ['sidebar'],
    },
  }
);
